/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
import * as $protobuf from 'protobufjs/light'

const $root = (
  $protobuf.roots['default'] || ($protobuf.roots['default'] = new $protobuf.Root())
).addJSON({
  rsstreamer: {
    nested: {
      Request: {
        fields: {}
      },
      Response: {
        fields: {
          msg: {
            type: 'string',
            id: 1
          },
          code: {
            type: 'int32',
            id: 2
          },
          frame_base64: {
            type: 'string',
            id: 3
          },
          fps: {
            type: 'int32',
            id: 4
          },
          width: {
            type: 'int32',
            id: 5
          },
          height: {
            type: 'int32',
            id: 6
          },
          unique_video_url: {
            type: 'string',
            id: 7
          }
        }
      },
      DeviceType: {
        values: {
          CPU: 0,
          GPU: 1,
          Sophon_1684: 2,
          Sophon_1684X: 3,
          Sophon_1688: 4,
          RK3588: 10,
          Jetson_NX2: 20,
          Ascend_200DK: 30,
          AX650N: 40
        }
      },
      StreamType: {
        values: {
          RTSP: 0,
          USB: 1,
          File: 2
        }
      },
      SportCategory: {
        values: {
          COUNT: 0,
          MEASURE: 1,
          RACE: 2
        }
      },
      SportType: {
        values: {
          SIT_UP: 0,
          PUSH_UP: 1,
          ROPE_SKIP: 2,
          STAND_BROAD_JUMP: 3,
          SHORT_RACE: 5,
          SHORT_RACE_REGION: 6,
          SHORT_RACE_REGION_SHUTTLE: 7,
          MID_LONG_RACE_REGION: 11,
          PULL_UP: 8,
          SOLID_BALL_THROW: 9,
          VOLLEYBALL_DIG: 10,
          BEND_ARM_HANG: 12,
          HOR_BAR_ROLL_UP: 13,
          PAR_BAR_DIP: 14,
          SIT_UP_CRUNCH: 15,
          JUMPING_JACK: 16,
          LEAN_PULL_UP: 17,
          VERTICAL_JUMP: 18,
          VERTICAL_JUMP_TOUCH: 19,
          GENERAL: 100,
          GESTURE: 101,
          BASIC: 102,
          FACE: 103,
          REGION_CALIB: 104
        }
      },
      StatusType: {
        values: {
          STATUS_SITUP_STAND: 0,
          STATUS_SITUP_LYING: 1,
          STATUS_READY: 200,
          STATUS_PULL_UP_READY: 300,
          STATUS_PULL_UP_NOT_READY: 301,
          STATUS_PUSH_UP_READY: 400,
          STATUS_PUSH_UP_NOT_READY: 401,
          STATUS_BEND_ARM_HANG_READY: 500,
          STATUS_BEND_ARM_HANG_NOT_READY: 501,
          STATUS_SIT_UP_CRUNCH_READY: 600,
          STATUS_SIT_UP_CRUNCH_NOT_READY: 601,
          STATUS_HOR_BAR_ROLL_UP_NOT_READY: 701,
          STATUS_PAR_BAR_DIP_NOT_READY: 801
        }
      },
      StatusValue: {
        fields: {
          cameraId: {
            type: 'string',
            id: 3
          },
          regionNumber: {
            type: 'string',
            id: 6
          },
          REGION_SEND: {
            type: 'string',
            id: 7
          },
          SHORT_RACE_REGION_START_TIME: {
            type: 'int64',
            id: 1
          },
          RACE_REGION_START_TIME: {
            type: 'int64',
            id: 8
          },
          ROPE_SKIP_ROPEDET: {
            type: 'string',
            id: 2
          },
          FACE_DET: {
            type: 'string',
            id: 4
          },
          facialDet: {
            type: 'string',
            id: 5
          },
          PUSH_FULL_FRAME: {
            type: 'string',
            id: 9
          },
          ROPE_DET: {
            type: 'string',
            id: 10
          },
          ROPE_SKIP_REMOVE_BREAK: {
            type: 'string',
            id: 11
          }
        }
      },
      IrregularType: {
        values: {
          NORMAL: 0,
          SITUP_SSWBTJ: 1,
          SITUP_TBLD: 2,
          SITUP_WZQDW: 3,
          SITUP_WPTDW: 4,
          ROPE_SKIP_NO_ROPE: 5,
          ROPE_SKIP_BREAK: 6,
          ROPE_SKIP_HAS_ROPE: 7,
          RACE_FALSE_START: 100,
          STAND_BROAD_JUMP_OVERSTEP: 200,
          STAND_BROAD_JUMP_OVERSTEP_JUMP: 204,
          STAND_BROAD_JUMP_TOUCH_GROUND: 201,
          STAND_BROAD_JUMP_TOUCH_GROUND_BACK: 206,
          STAND_BROAD_JUMP_EXIT_REGION: 202,
          STAND_BROAD_JUMP_EXIT_REGION_IRR: 203,
          STAND_BROAD_JUMP_SINGLE_FOOT: 205,
          STAND_BROAD_JUMP_LOW_JUMP: 207,
          STAND_BROAD_JUMP_LARGE_FOOT_DIST: 208,
          PULL_UP_STYB: 300,
          PULL_UP_SBWSZ: 301,
          PULL_UP_XHWGG: 302,
          PULL_UP_TBWSZ: 303,
          PUSH_UP_WSDW: 400,
          PUSH_UP_WXDW: 401,
          PUSH_UP_XGCD: 402,
          PUSH_UP_YBWQ: 403,
          SOLID_BALL_THROW_OVERSTEP: 500,
          VOLLEYBALL_DIG_NOT_PASS: 600,
          VOLLEYBALL_DIG_OVERSTEP: 601,
          BEND_ARM_HANG_XZBD: 700,
          PARALLEL_BAR_DIP_WSDW: 800,
          PARALLEL_BAR_DIP_WXDW: 801,
          SIT_UP_CRUNCH_SBWSZ: 900,
          SIT_UP_CRUNCH_TJWCD: 901,
          SIT_UP_CRUNCH_WHQDX: 902,
          SIT_UP_CRUNCH_WHZDX: 903
        }
      },
      WarningType: {
        values: {
          WARN_NONE: 0,
          WARN_REGION_BLOCK: 1,
          WARN_REGION_EXIT: 2
        }
      },
      Warning: {
        fields: {
          type: {
            type: 'WarningType',
            id: 3
          },
          regionNumber: {
            type: 'string',
            id: 4
          }
        }
      },
      PromptType: {
        values: {
          PROM_NONE: 0,
          PROM_ROPE_SKIP_SWITCH_SKIP: 101,
          PROM_ROPE_SKIP_NORMAL_SKIP: 102,
          PROM_ROPE_SKIP_HAS_ROPE: 103,
          PROM_ROPE_SKIP_NO_ROPE: 104,
          PROM_GESTURE_WAVE_LEFT: 201,
          PROM_GESTURE_WAVE_RIGHT: 202,
          PROM_GESTURE_WAVE_UP: 203,
          PROM_GESTURE_WAVE_DOWN: 204,
          PROM_GESTURE_RAISE_PALM_RIGHT: 205,
          PROM_GESTURE_RAISE_PALM_LEFT: 207,
          PROM_GESTURE_RAISE_FIST: 206,
          PROM_PULL_BACK_HAND: 301
        }
      },
      Prompt: {
        fields: {
          type: {
            type: 'PromptType',
            id: 3
          },
          regionNumber: {
            type: 'string',
            id: 4
          }
        }
      },
      StreamInfo: {
        fields: {
          type: {
            type: 'StreamType',
            id: 1
          },
          cameraId: {
            type: 'string',
            id: 2
          },
          ip: {
            type: 'string',
            id: 3
          },
          port: {
            type: 'string',
            id: 4
          },
          username: {
            type: 'string',
            id: 5
          },
          password: {
            type: 'string',
            id: 6
          },
          videoUrl: {
            type: 'string',
            id: 7
          },
          reopen: {
            type: 'bool',
            id: 8
          },
          sportType: {
            type: 'SportType',
            id: 9
          },
          raw_frame: {
            type: 'bool',
            id: 10
          }
        }
      },
      TimeInfo: {
        fields: {
          timestamp: {
            type: 'int64',
            id: 1
          }
        }
      },
      Point: {
        fields: {
          x: {
            type: 'float',
            id: 1
          },
          y: {
            type: 'float',
            id: 2
          },
          z: {
            type: 'float',
            id: 3
          }
        }
      },
      RegionType: {
        values: {
          REGION_NONE: 0,
          REGION_RACE_IN: 1,
          REGION_RACE_OUT: 2,
          REGION_DIST_CALIB: 3,
          REGION_DISTORT_RECT: 4,
          REGION_CONTROL: 5
        }
      },
      Region: {
        fields: {
          number: {
            type: 'string',
            id: 1
          },
          points: {
            rule: 'repeated',
            type: 'Point',
            id: 2
          },
          width: {
            type: 'float',
            id: 3
          },
          height: {
            type: 'float',
            id: 4
          },
          type: {
            type: 'RegionType',
            id: 5
          },
          personId: {
            type: 'int64',
            id: 6
          }
        }
      },
      RefLines: {
        fields: {
          ref_lines: {
            rule: 'repeated',
            type: 'Region',
            id: 2
          }
        }
      },
      VisObject: {
        fields: {
          points: {
            rule: 'repeated',
            type: 'Point',
            id: 1
          },
          color: {
            type: 'Color',
            id: 2
          }
        }
      },
      PushMode: {
        values: {
          PUSH_VIS_FRAME: 0,
          PUSH_NO_FRAME: 1,
          PUSH_RAW_FRAME: 2
        }
      },
      PushFormat: {
        values: {
          PUSH_FORMAT_NONE: 0,
          PUSH_FORMAT_JSON: 1,
          PUSH_FORMAT_PROTO: 2
        }
      },
      Parameters: {
        fields: {
          cameraId: {
            type: 'string',
            id: 1
          },
          appUrl: {
            type: 'string',
            id: 2
          },
          regionList: {
            rule: 'repeated',
            type: 'Region',
            id: 3
          },
          facialList: {
            rule: 'repeated',
            type: 'Region',
            id: 35
          },
          sportType: {
            type: 'SportType',
            id: 4
          },
          pushMode: {
            type: 'PushMode',
            id: 31
          },
          pushFormat: {
            type: 'PushFormat',
            id: 34
          },
          enableFaceDet: {
            type: 'bool',
            id: 36
          },
          individualControl: {
            type: 'bool',
            id: 37
          },
          disableSaveVideo: {
            type: 'bool',
            id: 32
          },
          saveVideoName: {
            type: 'string',
            id: 6
          },
          saveVideoDir: {
            type: 'string',
            id: 7
          },
          saveVideoTTL: {
            type: 'int64',
            id: 33
          },
          enableDynamicRecord: {
            type: 'bool',
            id: 38
          },
          sshVideoDir: {
            type: 'string',
            id: 28
          },
          sshHost: {
            type: 'string',
            id: 29
          },
          sshPort: {
            type: 'string',
            id: 30
          },
          httpUploadUrl: {
            type: 'string',
            id: 39
          },
          block: {
            type: 'bool',
            id: 8
          },
          discern: {
            type: 'string',
            id: 9
          },
          testItem: {
            type: 'string',
            id: 10
          },
          position: {
            type: 'string',
            id: 22
          },
          type: {
            type: 'string',
            id: 24
          },
          imgUrl: {
            type: 'string',
            id: 12
          },
          gRPCAppHost: {
            type: 'string',
            id: 13
          },
          gRPCAppPort: {
            type: 'string',
            id: 14
          },
          cameraType: {
            type: 'StreamType',
            id: 11
          },
          cameraFPS: {
            type: 'float',
            id: 15
          },
          cameraWidth: {
            type: 'int64',
            id: 16
          },
          cameraHeight: {
            type: 'int64',
            id: 17
          },
          internalWidth: {
            type: 'int64',
            id: 25
          },
          internalHeight: {
            type: 'int64',
            id: 26
          },
          logDir: {
            type: 'string',
            id: 20
          },
          debug: {
            type: 'bool',
            id: 21
          },
          configYaml: {
            type: 'string',
            id: 23
          },
          deviceType: {
            type: 'DeviceType',
            id: 27
          }
        }
      },
      CountResult: {
        fields: {
          cameraId: {
            type: 'string',
            id: 1
          },
          timestamp: {
            type: 'int64',
            id: 2
          },
          irregularType: {
            type: 'IrregularType',
            id: 3
          },
          regionNumber: {
            type: 'string',
            id: 4
          },
          regionType: {
            type: 'RegionType',
            id: 5
          },
          count: {
            type: 'int64',
            id: 17
          },
          duration: {
            type: 'int64',
            id: 7
          },
          distance: {
            type: 'float',
            id: 13
          },
          face_patch: {
            type: 'bytes',
            id: 20
          },
          track_id: {
            type: 'string',
            id: 21
          },
          status: {
            type: 'int64',
            id: 8
          },
          score: {
            type: 'float',
            id: 9
          },
          playerPos: {
            type: 'Box',
            id: 10
          },
          playerNumber: {
            type: 'string',
            id: 11
          },
          index: {
            type: 'int64',
            id: 12
          },
          frameId: {
            type: 'int64',
            id: 14
          },
          prefix: {
            type: 'string',
            id: 15
          },
          personId: {
            type: 'int64',
            id: 16
          },
          peak_value: {
            type: 'float',
            id: 18
          },
          trough_value: {
            type: 'float',
            id: 19
          }
        }
      },
      StatusResult: {
        fields: {
          cameraId: {
            type: 'string',
            id: 1
          },
          timestamp: {
            type: 'int64',
            id: 2
          },
          statusType: {
            type: 'StatusType',
            id: 3
          },
          regionNumber: {
            type: 'string',
            id: 4
          }
        }
      },
      FrameInput: {
        fields: {
          cameraId: {
            type: 'string',
            id: 1
          },
          timestamp: {
            type: 'int64',
            id: 2
          },
          frame: {
            type: 'bytes',
            id: 3
          }
        }
      },
      FrameResult: {
        fields: {
          cameraId: {
            type: 'string',
            id: 1
          },
          timestamp: {
            type: 'int64',
            id: 2
          },
          frame: {
            type: 'bytes',
            id: 3
          },
          cameraType: {
            type: 'string',
            id: 5
          },
          sportType: {
            type: 'SportType',
            id: 6
          },
          pipeline_result: {
            type: 'PipelineResult',
            id: 7
          },
          testItem: {
            type: 'string',
            id: 4
          }
        }
      },
      ImageInput: {
        fields: {
          image_bytes: {
            type: 'bytes',
            id: 13
          }
        }
      },
      OCROutput: {
        fields: {
          score: {
            type: 'float',
            id: 1
          },
          text: {
            type: 'string',
            id: 2
          }
        }
      },
      RopeDetOutput: {
        fields: {
          score: {
            type: 'float',
            id: 1
          }
        }
      },
      Box: {
        fields: {
          x1: {
            type: 'float',
            id: 1
          },
          y1: {
            type: 'float',
            id: 2
          },
          x2: {
            type: 'float',
            id: 3
          },
          y2: {
            type: 'float',
            id: 4
          },
          pad_x1: {
            type: 'float',
            id: 15
          },
          pad_x2: {
            type: 'float',
            id: 16
          },
          pad_y1: {
            type: 'float',
            id: 17
          },
          pad_y2: {
            type: 'float',
            id: 18
          },
          score: {
            type: 'float',
            id: 5
          },
          cls_id: {
            type: 'float',
            id: 6
          },
          activated: {
            type: 'bool',
            id: 7
          },
          keypoints: {
            type: 'Keypoints',
            id: 8
          },
          kpts_raw: {
            rule: 'repeated',
            type: 'Keypoint',
            id: 11
          },
          kpts_score: {
            type: 'float',
            id: 10
          },
          track_id: {
            type: 'string',
            id: 9
          },
          patch: {
            type: 'bytes',
            id: 12
          },
          region_id: {
            type: 'string',
            id: 13
          },
          kpts_assigned: {
            type: 'bool',
            id: 14
          },
          estimated: {
            type: 'bool',
            id: 19
          },
          flip_x: {
            type: 'float',
            id: 20
          }
        }
      },
      Keypoint: {
        fields: {
          x: {
            type: 'float',
            id: 1
          },
          y: {
            type: 'float',
            id: 2
          },
          z: {
            type: 'float',
            id: 3
          },
          score: {
            type: 'float',
            id: 4
          },
          assigned: {
            type: 'bool',
            id: 5
          }
        }
      },
      Keypoints: {
        fields: {
          nose: {
            type: 'Keypoint',
            id: 1
          },
          left_eye: {
            type: 'Keypoint',
            id: 2
          },
          right_eye: {
            type: 'Keypoint',
            id: 3
          },
          left_ear: {
            type: 'Keypoint',
            id: 4
          },
          right_ear: {
            type: 'Keypoint',
            id: 5
          },
          left_shoulder: {
            type: 'Keypoint',
            id: 6
          },
          right_shoulder: {
            type: 'Keypoint',
            id: 7
          },
          left_elbow: {
            type: 'Keypoint',
            id: 8
          },
          right_elbow: {
            type: 'Keypoint',
            id: 9
          },
          left_wrist: {
            type: 'Keypoint',
            id: 10
          },
          right_wrist: {
            type: 'Keypoint',
            id: 11
          },
          left_hip: {
            type: 'Keypoint',
            id: 12
          },
          right_hip: {
            type: 'Keypoint',
            id: 13
          },
          left_knee: {
            type: 'Keypoint',
            id: 14
          },
          right_knee: {
            type: 'Keypoint',
            id: 15
          },
          left_ankle: {
            type: 'Keypoint',
            id: 16
          },
          right_ankle: {
            type: 'Keypoint',
            id: 17
          },
          left_big_toe: {
            type: 'Keypoint',
            id: 18
          },
          left_small_toe: {
            type: 'Keypoint',
            id: 19
          },
          left_heel: {
            type: 'Keypoint',
            id: 20
          },
          right_big_toe: {
            type: 'Keypoint',
            id: 21
          },
          right_small_toe: {
            type: 'Keypoint',
            id: 22
          },
          right_heel: {
            type: 'Keypoint',
            id: 23
          },
          face_chin: {
            type: 'Keypoint',
            id: 24
          },
          left_middle_finger4: {
            type: 'Keypoint',
            id: 25
          },
          right_middle_finger4: {
            type: 'Keypoint',
            id: 26
          },
          left_thumb4: {
            type: 'Keypoint',
            id: 27
          },
          right_thumb4: {
            type: 'Keypoint',
            id: 28
          },
          left_pinky_finger4: {
            type: 'Keypoint',
            id: 29
          },
          right_pinky_finger4: {
            type: 'Keypoint',
            id: 30
          },
          face_mouth_left: {
            type: 'Keypoint',
            id: 31
          },
          face_mouth_right: {
            type: 'Keypoint',
            id: 32
          },
          face_left_eye_inner: {
            type: 'Keypoint',
            id: 33
          },
          face_left_eye_outer: {
            type: 'Keypoint',
            id: 34
          },
          face_right_eye_inner: {
            type: 'Keypoint',
            id: 35
          },
          face_right_eye_outer: {
            type: 'Keypoint',
            id: 36
          }
        }
      },
      Color: {
        fields: {
          r: {
            type: 'int64',
            id: 1
          },
          g: {
            type: 'int64',
            id: 2
          },
          b: {
            type: 'int64',
            id: 3
          }
        }
      },
      Text: {
        fields: {
          text: {
            type: 'string',
            id: 1
          },
          color: {
            type: 'Color',
            id: 2
          },
          left: {
            type: 'int64',
            id: 3
          },
          right: {
            type: 'int64',
            id: 4
          },
          font_size: {
            type: 'int64',
            id: 5
          }
        }
      },
      PipelineResult: {
        fields: {
          frame_id: {
            type: 'int64',
            id: 1
          },
          face_boxes: {
            rule: 'repeated',
            type: 'Box',
            id: 2
          },
          hand_boxes: {
            rule: 'repeated',
            type: 'Box',
            id: 19
          },
          bboxes: {
            rule: 'repeated',
            type: 'Box',
            id: 3
          },
          timestamp: {
            type: 'int64',
            id: 6
          },
          vis_texts: {
            rule: 'repeated',
            type: 'string',
            id: 7
          },
          debug_msgs: {
            rule: 'repeated',
            type: 'string',
            id: 8
          },
          count_results: {
            rule: 'repeated',
            type: 'CountResult',
            id: 9
          },
          status_results: {
            rule: 'repeated',
            type: 'StatusResult',
            id: 12
          },
          warnings: {
            rule: 'repeated',
            type: 'Warning',
            id: 16
          },
          prompts: {
            rule: 'repeated',
            type: 'Prompt',
            id: 17
          },
          texts: {
            rule: 'repeated',
            type: 'Text',
            id: 11
          },
          vis_objects: {
            rule: 'repeated',
            type: 'VisObject',
            id: 15
          },
          saved_frame_id: {
            type: 'int64',
            id: 10
          },
          fps: {
            type: 'float',
            id: 13
          },
          skip_det: {
            type: 'bool',
            id: 14
          },
          diff_frame: {
            type: 'bytes',
            id: 18
          },
          face_det: {
            type: 'bool',
            id: 20
          },
          video_record: {
            type: 'bool',
            id: 21
          },
          send_frame: {
            type: 'bool',
            id: 22
          },
          flip_x: {
            type: 'bool',
            id: 23
          }
        }
      },
      PipelineResults: {
        fields: {
          pipe_results: {
            rule: 'repeated',
            type: 'PipelineResult',
            id: 1
          },
          parameters: {
            type: 'Parameters',
            id: 2
          }
        }
      }
    }
  }
})

export { $root as default }
